package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 矫正对象-禁止令
 *
 * @author wenjie
 * @date 2024-04-19 10:29:41
 */
@Data
@TableName("jzdx_interdict")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "矫正对象-禁止令")
public class JzdxInterdictEntity extends Model<JzdxInterdictEntity> {


    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 社区矫正对象编号
     */
    @Schema(description = "社区矫正对象编号")
    private String rybh;

    /**
     * 禁止令类型
     */
    @Schema(description = "禁止令类型")
    private String jzllx;

    /**
     * 禁止令内容
     */
    @Schema(description = "禁止令内容")
    private String jzlnr;

    /**
     * 禁止期限开始日期
     */
    @Schema(description = "禁止期限开始日期")
    private LocalDate jzqxksrq;

    /**
     * 禁止期限结束日期
     */
    @Schema(description = "禁止期限结束日期")
    private LocalDate jzqxjsrq;

    /**
     * 特定区域坐标
     */
    @Schema(description = "特定区域坐标")
    private String tdqyzb;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}